package com.mj.dao.system;

import java.util.List;
import java.util.Map;

import com.mj.model.system.Dept;

public interface DeptMapper {
    int deleteByPrimaryKey(Integer deptId);

    int insert(Dept record);

    int insertSelective(Dept record);

    int updateByPrimaryKey(Dept record);
    
    Dept selectByPrimaryKey(Integer deptId);
    /**
     * 修改
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Dept record);

    
    /**
     * 查询所有部门
     * @param map
     * @return
     */
    List<Dept> findAllDept(Map<String,Object> map);
    
    
    int countDept(Map<String,Object> map);
}